import { createRouter, createWebHistory } from "vue-router";
import LoginPage from "../views/LoginPage.vue"; // 更新为新的组件名称
import CompleteInfoPage from "../views/CompleteInfoPage.vue";
import HomePage from "../views/HomePage.vue";
import SocialZonePage from "@/views/SocialZonePage.vue";
import SchoolZonePage from "@/views/SchoolZonePage.vue";
import MessagePage from "@/views/MessagePage.vue";
import CompanyProfilePage from "@/views/CompanyProfilePage.vue";
import PublishPage from "@/views/PublishPage.vue";
import UserCenterPage from "@/views/UserCenterPage.vue";
import taskDetailPage from "@/views/TaskDetailPage.vue";
const routes = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/login",
        name: "LoginPage",
        component: LoginPage
    },
    {
        path: "/complete-info",
        name: "CompleteInfoPage",
        component: CompleteInfoPage
    },
    {
        path: "/home",
        name: "HomePage",
        component: HomePage
    },
    {
        path: "/social-zone",
        name: "SocialZonePage",
        component:SocialZonePage
    },
    {
        path: "/school-zone",
        name: "SchoolZonePage",
        component: SchoolZonePage
    },
    {
        path: "/message",
        name: "MessagePage",
        component: MessagePage
    },
    {
        path: "/company-profile",
        name: "CompanyProfilePage",
        component: CompanyProfilePage
    },
    {
        path: "/publish",
        name: "PublishPage",
        component: PublishPage
    },
    {
        path: "/user-center",
        name: "UserCenterPage",
        component: UserCenterPage
    },
    {
        path: "/task-detail",
        name: "taskDetailPage",
        component: taskDetailPage
    },
    // 其他路由...
];


const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
